package com.lowcode.platform.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lowcode.platform.entity.LowcodePage;
import com.lowcode.platform.mapper.LowcodePageMapper;
import org.springframework.stereotype.Service;

@Service
public class LowcodePageService extends ServiceImpl<LowcodePageMapper, LowcodePage> {
    
    public LowcodePage createPage(LowcodePage page) {
        page.setRoutePath("/dynamic/" + page.getName());
        this.save(page);
        return page;
    }
}
